package cn.imnu.legalaid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 预约表
 * @TableName appointments
 */
@TableName(value ="appointments")
@Data
public class Appointments {
    /**
     * 预约表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户id
     */
    @TableField(value = "client_id")
    private Integer client_id;

    /**
     * 律师id
     */
    @TableField(value = "lawyer_id")
    private Integer lawyer_id;

    /**
     * 预定时间
     */
    @TableField(value = "scheduled_time")
    private LocalDateTime scheduled_time;

    /**
     * 持续时间（分钟）
     */
    @TableField(value = "duration")
    private Integer duration;

    /**
     * 需求
     */
    @TableField(value = "purpose")
    private String purpose;

    /**
     * 预约类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 预约费用
     */
    @TableField(value = "appointment_fee")
    private String appointment_fee;

    /**
     * 预约表状态
     */
    @TableField(value = "status")
    private String status;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime created_at;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updated_at;
}